You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Wilfred Spiegelenburg (Jira)" <ji...@apache.org> on 2021/05/05 06:07:00 UTC
[jira] [Resolved] (YUNIKORN-545) JSON based API error responses
[ 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: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org