Return more sensible HTTP errors