scala-webapp-template
scala-webapp-template copied to clipboard
Start returning error messages when invoking APIs with wrong parameters
Right now, when you invoke an unknown endpoint, you get back an empty error message, same way, when you invoke an endpoint with an invalid argument, you get an empty error message.
This behavior can be very annoying when getting started with the project, let's make sure to return proper error messages.
Hi, Can I take up this issue if possible?
For sure!
What's the desired behavior? e.g. if I hit
localhost:8080/badRoute
or localhost:8080/dashboard&myArg=badArg
I get returned to Home now. Should these redirect to a standard 404/400 page, respectively? Or should it still redirect to home, with a message displayed on the page?
localhost:8080
is frontend, localhost:9000
is backend, the issue relates to returning better error messages when invoking backend apis, for example, localhost:9000/auth/me
throws an error if you are not authenticated.