mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 19:02:40 +08:00
FIX: Inappropriate error message when you couldn't access a topic
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user