openSenseMap-API
                                
                                 openSenseMap-API copied to clipboard
                                
                                    openSenseMap-API copied to clipboard
                            
                            
                            
                        Unify response messages
Unify response message format to:
{
    code: "", // e.g. NotAuthorized or NotFound (restify errors) , Ok or Created for 2xx responses!
    message: "" // e.g. ApiKey valid or box data
}
What is your opinion on methods which respond with data?
For example /boxes/[{"value":2,"createdAt":"<date>"},{"value":4,"createdAt":"<date>"}...]
New would be:
{"code":"Ok","data":[...]}
isn't the error/success code already represented in the HTTP Statuscode through restify?
@noerw yes the http status code is always there.
The included restify errors are formatted like {code:"",message:""} For unification we will wrap all json responses like this..