Use Symfony HttpException to have a proper status code and generalize error message

Created on 10 June 2022, over 2 years ago
Updated 2 June 2023, over 1 year ago

Problem/Motivation

AuthenticationException returns a 500 error

Steps to reproduce

Generate a token using an invalid credential and the response will be HTTP/1.1 500 500 Service unavailable (with message)

Proposed resolution

Use Symfony HttpException to have a proper HTTP status response and message

Obscure "Invalid X-AUTH-TOKEN" to "Invalid token"

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇵🇭Philippines jfussion

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024