added error response to status bigger than 400