mirror of
https://github.com/bitcoin/bips.git
synced 2025-04-01 08:28:18 +02:00
Cleanup Response titles and bold HTTP response codes
This commit is contained in:
parent
fd249cb305
commit
8905c7436d
@ -83,7 +83,7 @@ A HTTP GET request on a TLS-protected HTTP address endpoint MUST set the '''Acce
|
||||
|
||||
====Response====
|
||||
|
||||
The Address Service MUST respond with the appropriate requested data type and a HTTP Status Code of 200 (OK).
|
||||
The Address Service MUST respond with the appropriate requested data type and a HTTP Status Code of '''200 (OK)'''.
|
||||
|
||||
If the data type is temporarily unavailable and should be retried later, the Address Service MUST respond with a HTTP Status Code of 503 (Service Unavailable). The Address Service MAY include a '''Retry-After''' HTTP Header if it can determine when an appropriate response will be available.
|
||||
|
||||
@ -100,13 +100,13 @@ application/bitcoin-encrypted-paymentprotocol-message
|
||||
|
||||
The HTTP POST request MUST set the '''Content-Transfer-Encoding''' header to "binary" and the '''Content-Type header''' to either of the aforementioned MIME Types. The content of the POST message MUST be the binary representation of a serialized ProtocolMessage or EncryptedProtocolMessage.
|
||||
|
||||
====Immediate Response (200)====
|
||||
====Immediate Response====
|
||||
|
||||
The Address Service MUST respond with a HTTP Status Code of 200 (OK) if the response type is a ProtocolMessage or EncryptedProtocolMessage. The Address Service MUST respond with a ProtocolMessage or EncryptedProtocolMessage based on the '''Accept''' header in the client request.
|
||||
The Address Service MUST respond with a HTTP Status Code of '''200 (OK)''' if the response type is a ProtocolMessage or EncryptedProtocolMessage. The Address Service MUST respond with a ProtocolMessage or EncryptedProtocolMessage based on the '''Accept''' header in the client request.
|
||||
|
||||
====Delayed Response (202)====
|
||||
====Delayed Response====
|
||||
|
||||
The Address Service MUST respond with a HTTP Status Code of 202 (Accepted) and the '''Location''' header set to a location to later retrieve the resulting ProtocolMessage or EncryptedProtocolMessage
|
||||
The Address Service MUST respond with a HTTP Status Code of '''202 (Accepted)''' and the '''Location''' header set to a location to later retrieve the resulting ProtocolMessage or EncryptedProtocolMessage
|
||||
|
||||
'''NOTE''': [[bip-0075.mediawiki|BIP75]] messages SHOULD be transmitted using EncryptedProtocolMessage message types in order to provide additional application-layer security.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user