kreuzwerker / DKT.flows-engine

Apache License 2.0
0 stars 0 forks source link

Response with error codes #96

Closed alexthewilde closed 6 years ago

alexthewilde commented 6 years ago

81

Turns out that throwing errors with custom props like HTTP status codes isn't quite possible yet with graphql-js (other than express-graphql which has the formatError option). So we include the error code in the error message and parse it later.