Skip to content

Commit c790635

Browse files
committed
Removed references to plain text response. Closes #22.
1 parent 404471c commit c790635

File tree

1 file changed

+2
-29
lines changed

1 file changed

+2
-29
lines changed

README.md

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -91,45 +91,18 @@ At this point the receiver can choose to publish information about this webmenti
9191

9292
##### Sender Error
9393

94-
If the webmention was not successful because of something the sender did, you SHOULD return a `400 Bad Request` status code and MAY include a simple plain text description of the error in the response body.
94+
If the webmention was not successful because of something the sender did, you SHOULD return a `400 Bad Request` status code and MAY include a description of the error in the response body.
9595

9696
Possible sender related errors (from the [Pingback](http://www.hixie.ch/specs/pingback/pingback) specification):
9797
* Source URL not found.
9898
* Specified target URL not found.
9999
* Source URL does not contain a link to the target URL.
100100
* Specified target URL does not accept webmentions.
101101

102-
```http
103-
POST /webmention-endpoint HTTP/1.1
104-
Host: alice.host
105-
Content-Type: application/x-www-url-form-encoded
106-
107-
source=http://bob.host/post-by-bob&
108-
target=http://alice.host/post-by-alice
109-
```
110-
```http
111-
HTTP/1.1 400 Bad Request
112-
113-
Source URL does not contain a link to the target URL.
114-
```
115-
116102
##### Receiver Error
117103

118-
If the webmention was not successful because of an error on the receivers server, it SHOULD return a `500 Internal Server Error` status code and MAY include a simple plain text description of the error in the response body.
104+
If the webmention was not successful because of an error on the receivers server, it SHOULD return a `500 Internal Server Error` status code and MAY include a description of the error in the response body.
119105

120-
```http
121-
POST /webmention-endpoint HTTP/1.1
122-
Host: alice.host
123-
Content-Type: application/x-www-url-form-encoded
124-
125-
source=http://bob.host/post-by-bob&
126-
target=http://alice.host/post-by-alice
127-
```
128-
```http
129-
HTTP/1.1 500 Internal Server Error
130-
131-
Cannot processes webmentions at this time. Please try again later.
132-
```
133106

134107
#### Updating existing webmentions
135108
If receiver had received a webmention in the past with the same `source` and `target` then,

0 commit comments

Comments
 (0)