Baucis's error definitions and handler middleware.