-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
WHAT is this
Because of iruka is prototype, the API returns an error message like for now:
$ curl localhost:3000/api/v1-alpha/apps/hello
"No such app: hello"
$ curl localhost:3000/api/v1-alpha/apps/hello/containers
"No such app: hello"But it should return 404 instead of the error message.
WHY this is problem
Returning the message causes following error when I'm using the CLI:
$ iruka apps
No apps to list
$ iruka ps --app hello
json: cannot unmarshal string into Go value of type []schema.Container
# same as `$ iruka ps --app hello`
$ curl -s -X GET localhost:3000/api/v1-alpha/apps/hello/containers
"No such app: hello"HOW to solve it
I think I need to create registry errors.
- registry returns error code and message if the resource does not exist
- controller handle the error and returns 404 to client
Metadata
Metadata
Assignees
Labels
No labels