[
https://issues.apache.org/jira/browse/YUNIKORN-545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wilfred Spiegelenburg resolved YUNIKORN-545.
--------------------------------------------
Fix Version/s: 0.11
Resolution: Fixed
All error responses for the REST calls are a marshalled JSON object.
It contains the following fields:
- StatusCode: numeric value same as the HTTP status code
- Message: short message
- Description: full cause of the error (if available) otherwise it has
the same content as the Message.
> JSON based API error responses
> ------------------------------
>
> Key: YUNIKORN-545
> URL: https://issues.apache.org/jira/browse/YUNIKORN-545
> Project: Apache YuniKorn
> Issue Type: Sub-task
> Components: webapp
> Reporter: Manikandan R
> Assignee: Manikandan R
> Priority: Blocker
> Labels: pull-request-available
> Fix For: 0.11
>
>
> In order to align with REST principles, we have already made changes to
> return the error responses in JSON format.
> {
> StatusCode: statusCode,
> Message: message,
> Description: message,
> }
> as part of https://issues.apache.org/jira/browse/YUNIKORN-418 (under review).
> This change would break the UI component as there is change the way responses
> would be delivered. This requires good amount of co-ordination with UI side.
> Had a offline discussion with [~sunilg] and thought better to take it
> together in the same release.
> cc: [~cheersyang] [~wilfreds] [~akhilpb]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]