diff options
author | Matt David <matt@netki.com> | 2016-06-10 09:48:53 -0700 |
---|---|---|
committer | Matt David <matt@netki.com> | 2016-06-10 09:48:53 -0700 |
commit | 8905c7436d589671c122662670fe841ed489726b (patch) | |
tree | a7a199e9982ec4c741227732d5fc447bd79b4e82 | |
parent | fd249cb305cf89bee23ba1a76e01b56fa3e37a24 (diff) | |
download | bips-8905c7436d589671c122662670fe841ed489726b.tar.xz |
Cleanup Response titles and bold HTTP response codes
-rw-r--r-- | bip-http-address-service.mediawiki | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bip-http-address-service.mediawiki b/bip-http-address-service.mediawiki index 045d75d..d45ae3b 100644 --- a/bip-http-address-service.mediawiki +++ b/bip-http-address-service.mediawiki @@ -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. |