Skip to content
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.

Wrong HTTP status code #791

Open
deveaud-m opened this issue Mar 21, 2018 · 1 comment
Open

Wrong HTTP status code #791

deveaud-m opened this issue Mar 21, 2018 · 1 comment

Comments

@deveaud-m
Copy link

While trying to access a private resource via the API, I get following error message:

{
    "status": 500,
    "error": "Internal Server Error",
    "message": "Internal error processing getProjectById",
    "timestamp": "2018-03-21T14:55:36.684Z"
}

Using the return code 401 might be more appropriate.

@tngraf
Copy link

tngraf commented Mar 22, 2018

I agree to Marion. I only see one error code: 500.
I would appreciate:

  • 500 => internal (fatal) error
  • 401/403 => private resources
  • 404 => id of project/component/release was not found

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants