def METHOD_NAME() -> None:
    """It should serialize an error with meta and source from ErrorDetails."""
    result = ErrorDetails(
        id="SomeErrorId",
        title="Some Error Title",
        detail="Some error detail",
        source=ErrorSource(pointer="/foo/bar/baz"),
        meta={"some": "meta information"},
    ).as_error(status_code=400)
    assert isinstance(result, ApiError)
    assert result.status_code == 400
    assert result.content == {
        "errors": (
            {
                "id": "SomeErrorId",
                "title": "Some Error Title",
                "detail": "Some error detail",
                "source": {"pointer": "/foo/bar/baz"},
                "errorCode": "4000",
                "meta": {"some": "meta information"},
            },
        )
    }