Improve HTTP error messages