elli-lib/elli

Elli throws an exception when returning unexpected HTTP status codes

jeffgrunewald opened this issue · 1 comments

It appears that when attempting to generate an HTTP status code binary description, Elli is unable to handle any codes that are not included in the list of handled function heads in elli_http.erl or a binary.

When receiving and attempting to handle non-standard or uncommon HTTP status codes, the handler crashes.

Since elli.erl declares a response type to be any integer between 100..999 inclusive, it should have a valid fall-through behavior for handling integer status codes that are not expected by that prepared list of status/1 function heads here

Thanks for the report and PR. Merged #96.