martini-contrib / render

Martini middleware/handler for easily rendering serialized JSON, XML, and HTML template responses.
MIT License
245 stars 57 forks source link

Make r.Status an alias for r.Error #21

Closed dkulchenko closed 10 years ago

dkulchenko commented 10 years ago

An empty-body status code return is useful for more than just errors, e.g. an HTTP 204 has no body, and would be useful to call using r.Status(204) rather than r.Error(204), since 204 isn't an error.

vieux commented 10 years ago

:+1:

codegangsta commented 10 years ago

Looks good to me. Merging