Good, alternatively you could try to figure out what exception is raised when you try to write_entry with missing title or text, and catch it, and abort with an appropriate status code.