improved http error code tests