The HTTP 403 status code, named Forbidden, means that the server understood the request but refuses to fulfill it, according to RFC 9110, the document that defines HTTP Semantics. A server that wants to say publicly why the request was forbidden can describe the reason in the response content, the standard says.
What the standard says
Section 15.5.4 of RFC 9110 defines the code in these words: "The 403 (Forbidden) status code indicates that the server understood the request but refuses to fulfill it."
The IANA HTTP Status Code Registry, which is maintained by IANA and registers status code numbers, records 403 as Forbidden with RFC 9110, Section 15.5.4, as its reference. The same registry describes the 4xx class, to which 403 belongs, as "Client Error - The request contains bad syntax or cannot be fulfilled".
RFC 9110 says that a server sending any 4xx response, except to a HEAD request, should send a representation explaining the error and whether it is a temporary or permanent condition, and that user agents should display that representation to the user.