error handling with try-except drf code example Example: python: raise error class MyError(TypeError): pass raise MyError('An error happened')