added error message for response