Skip to content

RestTemplate doesn't consistently tolerate unknown HTTP status codes [SPR-15978] #20529

@spring-projects-issues

Description

@spring-projects-issues

Darija Radchenko opened SPR-15978 and commented

I'm really sorry, I fill confused about this, but as listed here we are enable to handle custom http status codes already... But I'm still getting
IllegalArgumentException: no matching constant for [230] caused in MessageBodyClientHttpResponseWrapper.hasEmptyMessageBody().
I'm using API that responses 230, 240 codes etc... Can you please provide some example or guide me somewhere I can find the solution?

Spring Framework version 4.3.11


Affects: 4.3.11

Issue Links:

Referenced from: commits 4cbef27, 038af9a, 18a3322

Backported to: 4.3.12

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions