400 errors shouldn't prevent the normal transformation, this is up to the client to decide, otherwise REST clients passing 4xx errors (that are supposed to be retried with some change according to the documentation, lose the possible custom response because the transformation is never performed.