Improve http error responses