Send error code from api

[MAILPOET-2929]
This commit is contained in:
Pavel Dohnal
2020-06-08 14:48:03 +02:00
committed by Veljko V
parent 23a1fd4253
commit 0671aead3a

View File

@ -200,7 +200,10 @@ class Services extends APIEndpoint {
break;
}
return $this->errorResponse([APIError::BAD_REQUEST => $error]);
return $this->errorResponse(
[APIError::BAD_REQUEST => $error],
['code' => $result['code'] ?? null]
);
}
public function recheckKeys() {