drashland / drash

A microframework for building JavaScript HTTP applications. Runtime-agnostic. Strongly typed.

Home Page:https://drash.land/drash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ErrorService to handle HttpErrors / introduce custom error handling

routmoute opened this issue · comments

Summary

What:

Possiblity to modify Errors messages:
For exemple, change

Error: Method Not Allowed
    at Server.<anonymous> (https://deno.land/x/drash@v2.3.0/src/http/server.ts:238:17)
    at async Server.#respond (https://deno.land/std@0.119.0/http/server.ts:298:18)

by

{
    "error": "Method Not Allowed"
}

or what we want

Why:

Do not see details in production

Acceptance Criteria

Below is a list of tasks that must be completed before this issue can be closed.

  • Write documentation
  • Write integration tests
  • Write feature