Add post limit exception and remove legacy code.
Handle pastebin post limit error.

Closes #5492.