Add JSON error response, include supported methods
Adding version number, return JSON 502 errors