]> git.openstreetmap.org Git - nominatim.git/commit
api: generalize error handling
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 21 Mar 2023 15:24:26 +0000 (16:24 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 23 Mar 2023 09:16:50 +0000 (10:16 +0100)
commit1facfd019b3e0c86b3cfb1a25ae0837cce4bdcae
tree2c91b11e054533611ad88a2e0a0411d476a6b74b
parent00e3a752c9a749d2e2a0b8a406dd1b7e8e204765
api: generalize error handling

Return a consistent error response which takes into account the chosen
content type. Also adds tests for V1 server glue.
nominatim/api/v1/server_glue.py
nominatim/server/falcon/server.py
nominatim/server/sanic/server.py
nominatim/server/starlette/server.py
test/python/api/test_server_glue_v1.py [new file with mode: 0644]