Bug report for trillium-api
: wanting a State
and not getting it should *usually* be a 500, not a 404
#688
Labels
bug
Something isn't working
Multiple times, I've run into the bug that the state map didn't have the type I was expecting in it.
trillium-api
treats an unavailableState<T>
parameter as a failure to use that route, and thus a 404. However, based on experience withtrillium-api
, it seems like a missingState<T>
is often an internal server error.When a non-optional
State<T>
parameter fails to be available, I think it would make sense to:The text was updated successfully, but these errors were encountered: