Basic HTTP error handling