is the `return@get` required here or can it can re...
# ktor
h
is the
return@get
required here or can it can remove?
Copy code
route("/test") {
            get {
                try {
                     // some logic
                    call.respond(HttpStatusCode.OK)
                }  catch (e: Exception) {
                     return@get call.respond(HttpStatusCode.InternalServerError) // here
                }
            }
r
You can remove it. Also, consider using
StatusPages
plugin to handle exceptions.