Use bson.D where possible.
Use the router helper to write JSON data in the response.
Rename resolveURLError to noMatchingURLError.