Added testing for HTTP codes.