diff --git a/frontend/modules/api/controllers/ProfileController.php b/frontend/modules/api/controllers/ProfileController.php index 5b471fc..3e9fac4 100644 --- a/frontend/modules/api/controllers/ProfileController.php +++ b/frontend/modules/api/controllers/ProfileController.php @@ -67,7 +67,8 @@ class ProfileController extends \yii\rest\Controller return ['status' => 'success']; } - return ['status' => 'error']; + \Yii::$app->response->statusCode = 400; + return ['status' => 'error', 'errors' => $model->errors]; } }