def METHOD_NAME() -> None:
    """It should serialize an error response from a LegacyErrorResponse."""
    result = LegacyErrorResponse(
        message="Some error detail", errorCode=ErrorCodes.GENERAL_ERROR.value.code
    ).as_error(status_code=400)
    assert isinstance(result, ApiError)
    assert result.status_code == 400
    assert result.content == {"message": "Some error detail", "errorCode": "4000"}