Return response object instead error code