Skip to content

[Java] [WebClient] Custom error handling of HTTP responses not possible #1243

@lukstei

Description

@lukstei
Description

Custom error handling of HTTP responses not possible, because of the catch-all line in:

return Mono.error(new RestClientException("API returned " + statusCode + " and it wasn't handled by the RestTemplate error handler"));

openapi-generator version

3.3.0

OpenAPI declaration file content or url

any

Command line used for generation

standard

Steps to reproduce

generate any client

Related issues/PRs
Suggest a fix/enhancement

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions