Basic HTTP Request Validation

The PHP script returns a JSON object when there are errors within the
HTTP request. Currently only the Method and the HTTP-Version are
checked/validated.