import { HttpResponse } from '@/presentation/controllers/ports' ; export const ok = ( data ) : HttpResponse => ( { statusCode : 200 , body : data } ) ; export const created = ( data ) : HttpResponse => ( { statusCode : 201 , body : data } ) ; export const forbidden = ( error ) : HttpResponse => ( { statusCode : 403 , body : error } ) ; export const badRequest = ( error ) : HttpResponse => ( { statusCode : 400 , body : error } ) ; export const serverError = ( error ) : HttpResponse => ( { statusCode : 500 , body : error } ) ;