Skip to content

the http status code on kibana is 500, but the actual http status code is 200 #1036

@CoderLan0668

Description

@CoderLan0668

Describe the bug

in the Spring web project,internal code invocation throws an exception,but we use @ControllerAdvise and @ExceptionHandler to handle it, and it sned 200(http status code) and error message that we expected。

as we take the configuration that ignore this exception,and it‘s not collected as an ERROR, it is good。

but the problem is: the trace is reported as http 5xx on the kibana。

Steps to reproduce

it‘s well described by the above text

Expected behavior

expecte the trace is shown with the actual http status code:200

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions