Skip to content

MockClientHttpResponse loses original HttpStatus code #23599

Closed
@skrser

Description

@skrser

When server replies with non-standard Http Code, e.g. 250, this information is swallowed and 200 code is returned.

HttpStatus status = Optional.ofNullable(response.getStatusCode()).orElse(HttpStatus.OK);

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions