Catch exception and send different response