added error response for user rest controller