Return Unauthorized status code for API calls
Open
Component: API-Gateway
Type: Maintenance
- Dominant language
- Java
- Stars
- 7
- Forks
- 5
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 34
Description
**Is your feature request related to a problem? Please describe.**
Currently the API gateway returns redirect status code 304 when trying to access endpoints without authorization.
This should only happen for entrypoints under /.
For API calls like `/api/myendpoint` a status code "401 Unauthorized" should be returned.
This indicates an authorization error to the frontend and avoid redirect loops when calling those API endpoints.
**Describe the solution you'd like**
Change requests to /api/** to return 401 when unauthorized
**Describe alternatives you've considered**
---
**Additional context**
---
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.