Small change to api error responses
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am currently trying out the console API for an application and so far going well, but I ran into an error message while trying the search endpoint:
{
"error" : {
"status" : 400,
"message" : "Missing parameter type"
}
}
Now I finally found out what the problem was after way to many hours wasted. The search api has a parameter called 'type', that I forgot. The reason it took that long was that i thought the message told me I was missing A type, but without telling me which one. I would suggest that the message should be like
{
"error" : {
"status" : 400,
"message" : "Missing parameter 'type'"
}
}
to avoid confusion like I experienced for a couple of days. Just a thought.
Labels:
- Labels:
-
Discussion
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page