As discussed in #384, replace validation HTTP status errors by 422 and make it configurable