correct HTTP error code