response 400
This commit is contained in:
parent
6f7c497d80
commit
9c948774e0
@ -67,7 +67,8 @@ class ProfileController extends \yii\rest\Controller
|
|||||||
return ['status' => 'success'];
|
return ['status' => 'success'];
|
||||||
}
|
}
|
||||||
|
|
||||||
return ['status' => 'error'];
|
\Yii::$app->response->statusCode = 400;
|
||||||
|
return ['status' => 'error', 'errors' => $model->errors];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user