added user-specified response code to basic authentication