Validation of input parameters + http error messages

message should be:

latitudes range from -90 to 90