As you know, you can specify that a parameter is required in a route like so:
requires :province, :type => String
However, I would like to be able to change the error that is thrown and provide my own error JSON when the parameter is not given.
How can I do this easily? I am fine with monkey patching.
EDIT: I see at line 191 rescue_from
and that looks like it could be helpful but I'm not sure how to use it.
https://codeclimate.com/github/intridea/grape/Grape::API