2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-09 12:21:04 +08:00

FIX: Inappropriate error message when you couldn't access a topic

This commit is contained in:
Robin Ward 2015-05-27 13:53:49 -04:00
parent 83d2b59fc3
commit 5890dae64c
4 changed files with 27 additions and 1 deletions

View file

@ -175,6 +175,14 @@ export default function() {
return response(200, data.post);
});
this.get('/t/403.json', () => {
return response(403, {});
});
this.get('/t/500.json', () => {
return response(502, {});
});
this.put('/t/:slug/:id', (request) => {
const data = parsePostData(request.requestBody);