Send error code from api
[MAILPOET-2929]
This commit is contained in:
@ -200,7 +200,10 @@ class Services extends APIEndpoint {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->errorResponse([APIError::BAD_REQUEST => $error]);
|
return $this->errorResponse(
|
||||||
|
[APIError::BAD_REQUEST => $error],
|
||||||
|
['code' => $result['code'] ?? null]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function recheckKeys() {
|
public function recheckKeys() {
|
||||||
|
Reference in New Issue
Block a user