added error messages for requests