Break HTTPStatus middleware into HTTPStatus and ErrorMessage

Now, HTTPStatus can work with any content type, while ErrorMessage can work with only so it can work only JSON