func BadRequest(reason, description string) *Error {
	if reason == "" {
		reason = http.StatusText(http.StatusBadRequest)
	}
	if description == "" {
		description = "Request could not be understood due to malformed syntax."
	}
	return NewError(http.StatusBadRequest, reason, description)
}
BadRequest is returned when the request could not be understood by the
server due to malformed syntax.
package rst
import (
	"bytes"
	"fmt"
	"html/template"
	"io/ioutil"
	"log"
	"net/http"
	"runtime"
	"strings"
	"github.com/mohamedattahri/rst/internal/assets"
)
func ErrorHandler(err error) http.Handler {
	if e, ok := err.(*Error); ok {
		return e
	}
	panic(err)
}