added error messages to request