ErrCommandOutOfSequence invalid sequence of comments, i.e. attempt to {sub} before {hi} (409).
(id, unused string, ts time.Time)
| 1532 | |
| 1533 | // ErrCommandOutOfSequence invalid sequence of comments, i.e. attempt to {sub} before {hi} (409). |
| 1534 | func ErrCommandOutOfSequence(id, unused string, ts time.Time) *ServerComMessage { |
| 1535 | return &ServerComMessage{ |
| 1536 | Ctrl: &MsgServerCtrl{ |
| 1537 | Id: id, |
| 1538 | Code: http.StatusConflict, // 409 |
| 1539 | Text: "command out of sequence", |
| 1540 | Timestamp: ts, |
| 1541 | }, |
| 1542 | Id: id, |
| 1543 | Timestamp: ts, |
| 1544 | } |
| 1545 | } |
| 1546 | |
| 1547 | // ErrGone topic deleted or user banned (410). |
| 1548 | func ErrGone(id, topic string, ts time.Time) *ServerComMessage { |