IGNF / road2

NodeJS routing server aggregating several popular routing engines (video presentation (french) : https://peertube.fr/w/75fwFoW2GP8tQSGLUXUpPP)
https://ignf.github.io/road2/
GNU General Public License v3.0
11 stars 3 forks source link

[fix] Add the error code in the responses of the APIs #103

Open lgrd opened 2 months ago

lgrd commented 2 months ago

Now, we use the Error nodeJS class inside the errorManager. But it seems to be a misuse. For instance, error.code is always undefined when the error is created. So, when we want to send an error code inside the API response, there is none.