Skip to content

Server error handling for restful APIs #61

@oscar60310

Description

@oscar60310

What’s the problem you're trying to solve

We haven't had a proper way to handle errors for restful API, that is, we'll always throw "500 internal server error" for any errors.

Describe the solution you’d like

Catch these errors and set the proper HTTP status code. We can wrap our errors when they occurred and set the desired HTTP code there.

Additional context

Metadata

Metadata

Type

No type

Projects

Status

Released

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions