Correct HTTP error codes