def METHOD_NAME(errors):
    fields = []
    for e in errors:
        field = (
            "{} {}".format(e.path[0], e.schema["validationMessage"]) if "validationMessage" in e.schema else __format_message(e)
        )
        fields.append({"error": "ValidationError", "message": field})
    message = {"status_code": 400, "errors": unique_errors(fields)}
    return json.dumps(message)