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

Wrong HTTP status code #240

Closed
maierthomas opened this issue Apr 26, 2018 · 2 comments
Closed

Wrong HTTP status code #240

maierthomas opened this issue Apr 26, 2018 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@maierthomas
Copy link
Contributor

Issue by deveaud-m
Wednesday Mar 21, 2018 at 14:57 GMT
Originally opened as sw360/sw360portal#791


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.

@maierthomas maierthomas added the enhancement New feature or request label Apr 26, 2018
@maierthomas
Copy link
Contributor Author

Comment by tngraf
Thursday Mar 22, 2018 at 13:07 GMT


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

@mcjaeger
Copy link
Contributor

mcjaeger commented Mar 5, 2020

should be solved now: https://github.com/eclipse/sw360/pull/747/files

@mcjaeger mcjaeger closed this as completed Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants