Changing middleware error handler such that if the `Error.message` matches an `TurtleIO.codes` key, it'll be used for the HTTP status