StationA / tilenol

Scalable, multi-backend geo vector tile server
MIT License
22 stars 6 forks source link

Tilenol should verify arguments and return a BadRequest error rather than an empty response #22

Closed ccma14 closed 4 years ago

ccma14 commented 4 years ago

Description

Requesting a map tile form tilenol with invalid arguments currently causes a response with an HTTP result code 200 (OK) to be returned, but an empty response. Instead an HTTP error code 400 (BadRequest) should be returned in such a case.

Example:

Requesting a URL such as

http://tilenol.foo.com/_all/1000/1000/1000.mvt

causes such an empty response.

tilenol has a a max. zoom level specified in its configuration. Also the number of tiles depends on the zoom level specified, as outlined here.