Added parameter validation to Get and Post methods.
Return empty response body for certain types of requests.

#1