I'm working on the implementation of delete_facility in resource map by using the fred api.
I've got a question about the "Delete a facility" section in the api. I don't know which class the code field of the json object that must be returned belongs to.
Status: 200 ok. {code: 200, id:'...', message: 'Resource deleted'}
So it makes me think that the code field is numeric.
Anyway if the resource for id is not found:
Status: 404 Not Found. {code: 404 Not Found, message: 'Resource not found'}
So it makes me think that it should be a string.