Introduced HTTP error code handling