How can I distinguish different response errors without and error code?

Asked by Livio Brunner

In my application I do not want to directly forward the error messages from the Openstack API to the user, but I still need to distinguish whether for example "Quota exceeded for ram..." or "Quota exceeded for network..".

As far as I know the API does not send an unique identifier for each error message, so it will be hard to check what actually failed. The remoteMessage can't be taken as identifier too, because some messages are variable (e.g. "Quota exceeded for ram: Requested 8196, but already used 11268 of 15360 ram" -> The numbers are variable).

Is there a way around it, or is this a bug?

Btw., Google Map API for example solved this problem with unique error codes:

https://developers.google.com/maps/documentation/javascript/error-messages#errorcodes

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu nova Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.