Skip to content

Instantly share code, notes, and snippets.

@rm-you
Last active January 26, 2017 00:44
Show Gist options
  • Save rm-you/9105ff3a83106caa37097aaf07afc2a5 to your computer and use it in GitHub Desktop.
Save rm-you/9105ff3a83106caa37097aaf07afc2a5 to your computer and use it in GitHub Desktop.
# InvalidSortDir
$ curl -H "X-Project-Id: 684d175b565145d5ba90fd022b30b5f6" localhost:9876/v1/loadbalancers?sort_dir=deesc\&sort_key=name
400 Bad Request
The server could not comply with the request since it is either malformed or otherwise incorrect.
Supplied sort direction 'deesc' is not valid.
# InvalidLimit
$ curl -H "X-Project-Id: 684d175b565145d5ba90fd022b30b5f6" localhost:9876/v1/loadbalancers?sort_dir=desc\&sort_key=name\&limit=a
400 Bad Request
The server could not comply with the request since it is either malformed or otherwise incorrect.
Supplied pagination limit 'a' is not valid.
# InvalidSortKey
$ curl -H "X-Project-Id: 684d175b565145d5ba90fd022b30b5f6" localhost:9876/v1/loadbalancers?sort_dir=desc\&sort_key=namee
{"debuginfo": null, "faultcode": "Client", "faultstring": "Supplied sort key 'namee' is not valid."}
# InvalidMarker
$ curl -H "X-Project-Id: 684d175b565145d5ba90fd022b30b5f6" localhost:9876/v1/loadbalancers?sort_dir=desc\&sort_key=name\&marker=a
{"debuginfo": null, "faultcode": "Client", "faultstring": "Supplied pagination marker 'a' is not valid."}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment