squeak-today / backend

story generation and REST API
2 stars 0 forks source link

Incorrect error codes on wrong API call args #1

Open connortbot opened 5 days ago

connortbot commented 5 days ago

description

When calling the API with a nonexistent CEFR like "C3", it returns a 500 code internal server error.

details

Should all be 4XX error codes. However, valid arguments that don't exist in the S3 storage should remain 5XX.