Coding standards
Added HTTP response code for errors