WriteResponse

Write response factory.

class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[T](body: => T)(implicit mkResponse: WriteResponseMaker[T]): PreparedResponse

Creates a response for given body.

Creates a response for given body.

Named factory for error response.

Named factory for error response.

Value parameters:
message

Error message

def failed(message: String, code: Int): PreparedResponse

Named factory for error response.

Named factory for error response.

Value parameters:
code

Error code

message

Error message

def successful(count: Int, updatedExisting: Boolean): PreparedResponse

Factory for successful response.

Factory for successful response.

Value parameters:
count

The number of documents affected by last command, 0 if none

updatedExisting

Some existing document has been updated

Concrete fields

Undefined response, returned by handler no supporting a specific write operation that may be handled by others.

Undefined response, returned by handler no supporting a specific write operation that may be handled by others.