Invalid message content results in 500 (not 400) status code
In my particular case i was trying to send a message with an extra trailing back tick.
This resulted in a 500 internal server error. It would be nice to see an error warning about invalid markup instead
Reproduction message:
Hi! I am running an http4s app and I need to hold some global state which will be accessed and mutated concurrently. I've created a class to hold the state (a mutable map), guarded by a Semaphore with a permit of 1. This feels a bit hacky and I wondered if there is a better way to do this?
I can't use a Ref (I think!) because the signature is `def modify[B](f: A => (A, B)): F[B]` and I would need `def modify[B](f: A => F[(A, B)]): F[B]``
This is my current implementation (simplified): [https://gist.github.com/thobson/907064fde2b0d013d2f30c4ad97a03b0](https://gist.github.com/thobson/907064fde2b0d013d2f30c4ad97a03b0)
Relevant code
Edited by Eric Eastwood