Validation of input parameters + http error messages

And here is piece of message from stacktrace of Solr exception: "...com.spatial4j.core.exception.InvalidShapeException: distance must be <= 180; got 809388.3309854972..."