Fei Long Wang fbb1eb9285 Fix return error when resource can't be found
By current implement, the HTTP request for /v2/resources/<resource_id>
will return 500 if there is no coresponding resource or the resource id
is invalid. And the response is as below:

{"error_message": "{"debuginfo": null, "faultcode": "Server",
"faultstring": "list index out of range"}"}

After fixed, the response will be like this:

{"error_message": "{"debuginfo": null, "faultcode": "Client",
"faultstring": "Invalid input for field/attribute resource_id.
Value: '9'. Unknown resource"}"}

Fixes bug: 1195925

Change-Id: I73c73fb3ba57bc6cbbf421f9ac5ec3cdb68ce784
2013-07-02 00:12:12 +08:00
..
2013-06-13 17:18:12 +02:00
2013-06-01 15:31:17 +02:00
2012-07-27 10:34:36 -04:00
2012-10-26 16:37:23 +02:00
2013-06-14 17:38:08 +02:00
2013-06-13 17:18:12 +02:00
2013-05-22 14:23:03 -03:00