Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update error handling #15

Closed
mrexmelle opened this issue Jan 8, 2024 · 0 comments · Fixed by #18, #20, #19, #21 or #27
Closed

Update error handling #15

mrexmelle opened this issue Jan 8, 2024 · 0 comments · Fixed by #18, #20, #19, #21 or #27
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@mrexmelle
Copy link
Owner

Description

Currently there's no singular way to return response. This ticket requires HTTP responses to return with the following format for responses with data:

{
 "data": $(data)
 "error": {
    "code": $(app_specific_error_code)
    "message": $(error_from_error_obj)
  }
}

And for responses without data:

{
 "error": {
    "code": $(app_specific_error_code)
    "message": $(error_from_error_obj)
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment