Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Update backend to make sure API returns correct HTTP status codes #128

Open
zkwsk opened this issue Jul 20, 2020 · 0 comments
Open

Update backend to make sure API returns correct HTTP status codes #128

zkwsk opened this issue Jul 20, 2020 · 0 comments

Comments

@zkwsk
Copy link
Contributor

zkwsk commented Jul 20, 2020

Go through the example endpoint setup and ensure that 404 is returned if you try to request a resource that's not there and otherwise give a 5xx code.

I don't think we currently have backend authentication backed into the boilerplate, but if we do, we should also make sure that we return 401 codes on unauthorized requests and so on.

To be honest, I did not check what we actually have in the codebase I just know that we've had issues on most projects with this but I don't remember how much was in the boilerplate and how much was written by students. If it's not in the boilerplate we should add a guide explaining to the students how to set up the status codes correctly.

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

No branches or pull requests

1 participant