Basic validation of HTTP request parameters. Added proper HTTP responses.