Code suggestion

Hello –
 
I have a suggestion about your api endpoint models. I believe it would be a better idea to have the error model with its four fields be inherited by the other models, so that way you’re always at least returning an error model that could be checked for null before proceeding with the results of the GET or POST. This would also cut down on the need to return unsuccessful HTTP status codes.
 
Just a thought.
 
Thanks.
 
Russell