Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

More http response codes #1

Closed
wants to merge 1 commit into from

1 participant

@phuesler
Owner

Symptom: Elli results in a broken pipe when an invalid response code is returned

@phuesler phuesler closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 26, 2012
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/elli_http.erl
View
2  src/elli_http.erl
@@ -116,7 +116,9 @@ execute_callback(Req, {Mod, Args}) ->
responsecode2bin(200) -> <<"HTTP/1.1 200 OK">>;
+responsecode2bin(204) -> <<"HTTP/1.1 204 No Content">>;
responsecode2bin(304) -> <<"HTTP/1.1 304 Not Modified">>;
+responsecode2bin(400) -> <<"HTTP/1.1 400 Bad Request">>;
responsecode2bin(403) -> <<"HTTP/1.1 403 Forbidden">>;
responsecode2bin(404) -> <<"HTTP/1.1 404 Not Found">>;
responsecode2bin(500) -> <<"HTTP/1.1 500 Internal Server Error">>.
Something went wrong with that request. Please try again.